package com.avic.rong.payUtil;

import android.app.Activity;
import android.content.Context;

import com.avic.rong.R;
import com.avic.rong.utils.DialogCustom;
import com.avic.rong.utils.LogApp;


public class PayResultDialogUtils implements PayConstant {

	protected static final String TAG = "PayState";

	/**
	 * 提示是否重新购买
	 * 
	 * @param context
	 */
	public static void showRestartPays(Context context) {
		DialogCustom.showDoubleDialog(context, "购买失败", "抱歉，支付失败，请重试", "重新购买", "取消", new DialogCustom.CustomDialogDouble() {

			@Override
			public void rightButtonClicked() {
				LogApp.e(TAG, "重试");
			}

			@Override
			public void leftButtonClicked() {
				LogApp.e(TAG, "取消");
			}
		});
	}

	/**
	 * 提示暂未收到支付结果
	 * 
	 * @param context
	 */
	public static void showPayResults(final Activity context, final String pid) {
		DialogCustom.showSingleNoTitleDialog(context, R.string.didnt_getpay_result_title,R.string.didnt_getpay_result_more, new DialogCustom.CustomDialogSingle() {

					@Override
					public void confirm() {
//						Intent mIntent =new Intent();
//						mIntent.setClass(context, UserLoginActivity.class);
//						context.startActivity(mIntent);
					}

				});
	}
}
